apiVersion: kuma.io/v1alpha1
kind: ProxyTemplate
metadata:
  name: default
spec:
  imports:
  - default-proxy
---
apiVersion: kuma.io/v1alpha1
kind: ProxyTemplate
metadata:
  name: default-and-raw
spec:
  imports:
  - default-proxy
  resources:
  - name: localhost:8080
    resource:
      '@type': type.googleapis.com/envoy.api.v2.Cluster
      connectTimeout: 5s
      loadAssignment:
        clusterName: localhost:8080
        endpoints:
        - lbEndpoints:
          - endpoint:
              address:
                socketAddress:
                  address: 127.0.0.1
                  portValue: 8080
    version: v1
  - name: inbound:192.168.0.1:8080
    resource:
      '@type': type.googleapis.com/envoy.api.v2.Listener
      address:
        socketAddress:
          address: 192.168.0.1
          portValue: 8080
      deprecatedV1:
        bindToPort: false
      filterChains:
      - filters:
        - name: envoy.filters.network.tcp_proxy
          typedConfig:
            '@type': type.googleapis.com/envoy.config.filter.network.tcp_proxy.v2.TcpProxy
            cluster: localhost:8080
            statPrefix: localhost:8080
      name: inbound:192.168.0.1:8080
    version: 0d587dfbb17f97fafd84e15c2a6f3a1521889921
---
apiVersion: kuma.io/v1alpha1
kind: ProxyTemplate
metadata:
  name: default-and-scripted
spec:
  imports:
  - default-proxy
  generator:
    jsonnet:
      script: |
        ...
      params:
        a: b
        c: d
